﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Lottery.WPSOffice;

namespace Lottery.MediaData.Core {
    /// <summary>
    /// 加载预测数据
    /// </summary>
    public static class YuCeLoadExcel {
        public static List<YuCeDataItem> Load(string fileName) {
            var result = new List<YuCeDataItem>();

            var data = BatchGen.ImportYuCeData(fileName);
            foreach (var item in data) {
                var d = new YuCeDataItem();
                d.Order = item[0];
                for (int i = 1; i < 15; i++) {
                    d[i - 1] = item[i];
                }

                result.Add(d);
            }

            return result;
        }
    }
}
